#pragma once

#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>
#include <QtSql/qsqldatabase.h>
#include <qsqlquery.h>
#include <QtConcurrent>
#pragma execution_character_set("utf-8")
class TcpUtil : public QObject
{
	Q_OBJECT

private:
	QTcpServer* server;
	QTcpSocket* socket;
	QString serverIp = "192.168.110.83";
	QString databaseName = QString::fromLocal8Bit("testSqlserver");
	QString user = "sa";
	QString password = "123456";
	QString tcp_interval = "2000";
	QString tcp_port = "8888";

private slots:
	void newconnected();
public:
	TcpUtil(QObject *parent=nullptr);
	~TcpUtil();
	QTcpSocket* getSocket();
};
